import React from 'react';


export default class ListItem extends React.Component{
    render(){
        const info = this.props.information;
        const listItems = info.map((info)=>
            <li key={info.id}>
                <span>{info.id}</span>
                <span>{info.title}</span>
                <span>{info.name}</span>
            </li>)
        return(
            <ul>{listItems}</ul>
        )
    }
}
